<?php
/**
 * File: SetPassword.class.php
 * Author: camy <375766145@qq.com>
 * Time: 2018/3/23 17:01
 */

namespace Common\Extend\DingTalk\Message\User;

use Common\Extend\DingTalk\Message\BaseMessage;

class SetPassword extends BaseMessage
{
    public function send($param)
    {
        //标题
        $this->title = '用户提醒';
        $this->setUrl('user/index');
        //发送人
        $people = $this->getUserId($param['user_id']);
        //发送内容
        $text = "您的密码已重置，如本人操作请忽略此信息";
        $message = $this->getMessage($text);
        //发送消息
        dingtalk()->sendMessage($people, $message);
    }
}